package com.defect.service.statisticsService.statisticsServiceImpl;

import com.defect.mapper.WorkLogMapper;
import com.defect.service.statisticsService.SWorkLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class SWorkLogServiceImpl implements SWorkLogService {
    @Resource
    private WorkLogMapper workLogMapper;

    /**
     *查询工时日统计
     * @param 1.项目id<"id",值>，日期<"date",值>
     * @return 返回项目名、登记人、登记时间、登记工时。
     * @throws Exception
     */
    @Override
    public List<Map<String, Object>> selectWorkLogSameDay(Map<String, Object> map) throws Exception {
        return workLogMapper.selectWorkLogSameDay(map);
    }
    /**
     * 查询工时统计总条数
     * @param 1.项目id<"id",值>，日期<"date",值>
     * @return
     */
    @Override
    public Long count(Map<String, Object> map) throws Exception {
        return workLogMapper.count(map);
    }

}
